import { AxiosResponse } from 'axios'
import { LoginFrom } from '@/types/views/login'
import { ResponseData } from '@/types/api/public'
import request from '@/request'


/**
 * @desc: 全部线索获取数据
 * @param { Object } 
 */
 export const getdata = (data: LoginFrom) => {
    return request({
      url: '/getenter_data',
      method: 'get',
      params:data
    })
  }

  /**
 * @desc: 获取树形地区数据
 * @param { Object } 
 */
 export const getarea = (data: LoginFrom) => {
  return request({
    url: '/get_area',
    method: 'get',
    params:data
  })
}

  /**
 * @desc: 线索转化客户
 * @param { Object } 
 */
  export const addcus1 = (data: LoginFrom) => {
    return request({
      url: '/addcus1',
      method: 'get',
      params:data
    })
  }

/* @desc: 线索添加
* @param { Object } 
*/
export const add_clue = (data: LoginFrom) => {
    return request({
      url: '/addclue',
      method: 'get',
      params:data
    })
  }

/* @desc: 线索修改
* @param { Object } 
*/
export const update_clue = (data: LoginFrom) => {
  return request({
    url: '/updclue',
    method: 'get',
    params:data
  })
}

  /* @desc: 跟进数据查看
* @param { Object } 
*/
export const getfollow = (data: LoginFrom) => {
  return request({
    url: '/getfollow',
    method: 'get',
    params:data
  })
}

  /* @desc: 跟进记录添加
* @param { Object } 
*/
export const add_follow = (data: LoginFrom) => {
  return request({
    url: '/addfollow',
    method: 'get',
    params:data
  })
}

  /* @desc: 释放线索
* @param { Object } 
*/
export const releaseclue = (data: LoginFrom) => {
  return request({
    url: '/release_clue',
    method: 'get',
    params:data
  })
}



  /* @desc: 领取线索
* @param { Object } 
*/
export const receiveclue = (data: LoginFrom) => {
  return request({
    url: '/receive_clue',
    method: 'get',
    params:data
  })
}

  /* @desc: 删除线索
* @param { Object } 
*/
export const delclue = (data: LoginFrom) => {
  return request({
    url: '/del_clue',
    method: 'get',
    params:data
  })
}